Skip to main content

All Questions

Tagged with
2votes
0answers
123views

When Should We Separate DTOs from REST API Serialization Classes? [closed]

We know that combining a domain entity, a DTO, and a REST API serialization class into one won't pass code review: @JsonInclude(JsonInclude.Include.NON_NULL) @Data @Builder @Entity @Table(name = "...
sfinja's user avatar
-1votes
1answer
592views

Designing around potentially multiple RESTful API calls to a downstream service

To set up the problem, let's imagine we have a downstream service that we need to call for some information. We set up an API endpoint and call another method which will hold our business logic and ...
Astrum's user avatar
1vote
1answer
1kviews

What are the advantages of sending timestamp in the response?

I am working on REST API and it calls another service and fetch the data and return to the UI. So It does not have any direct DB interactions. Recently we added exception handling feature which uses ...
happytohelp's user avatar
0votes
2answers
1kviews

A desktop app which incorporates a REST API?

I am planning to build an adapter between a PC and devices which have the same function but which have different interfaces. The adapter will probably be based on a Raspberry Pi and will have a touch ...
paul's user avatar
  • 1,191
1vote
1answer
201views

REST : Static API design

Lets say, I have a scenario where I have to expose an api to fetch supported shirt sizes(small , medium and large) My initial thought was /v1/shirts/sizes - But this clashes with the existing fetch ...
Jeevi's user avatar
2votes
1answer
163views

Handling OAuth 2.0 access token

I am creating a rest template to consume REST API secured by OAuth 2.0. The provider has implemented an expiry for the access token for 5 mins. So Using the rest template, I will be calling the ...
Brooklynn99's user avatar
1vote
1answer
396views

Designing low fault software rest API calls to achieve data synchronization between two different systems

I have been looking for a better design approach and will be providing my problem statement here with a similar example. As I don't have logic already in place but have the solution in mind which I ...
Brooklynn99's user avatar
2votes
1answer
848views

Microservices loose coupling using distributed business logic or centralized?

How do we achieve loose coupling in the below scenario: N microservices (let's call them Callers) needs a logic or business( let's call it Worker) to be executed with different contracts. Although ...
Vishal nigam's user avatar
0votes
0answers
483views

Testing REST API with nested object creation and endpoint transactionality

I'm building a location based REST API using Spring Boot, and I have run into a bit of a testing philosophy question. I have an object called Location that, among other things, requires a Google ...
sunrize920's user avatar
-1votes
1answer
259views

Java MVC or Rest based approach with security [closed]

I am working in designing Java-based web applications. Although, I have worked with Java core still a novice in designing web-apps and do not have enough confidence in what I am thinking is correct or ...
sd1517's user avatar
11votes
1answer
433views

REST service as an application server for 2000+ client machines. Is it a good idea?

We will be building a system with the UI in javaFx that will be deployed to 2000+ machines (minimum is 2000, but it will be more - can reach 5000 machines). For other reasons/limitations it must be ...
Thiago Sayão's user avatar
3votes
2answers
5kviews

RESTful service and DAO: deciding on responses

I am developing a RESTful API and I am using DAOs to serve data to the service. I am having trouble deciding where certain responsibilities should fall, whether in the service or in the DAO contract. ...
dabadaba's user avatar
0votes
1answer
44kviews

Best way to represent multiple JSON response in a REST service? [closed]

I am working on a REST service in which I am trying to come up with a JSON response that I am supposed to return back. Below is the design I am able to come up with in which each line is a response ...
david's user avatar
1vote
1answer
1kviews

How to avoid LazyInitializationException using Hibernate and Jersey

I am working with Spring Boot + Jersey + JPA/Hibernate to build a RESTful API. The issue I am encountering right now is when I have a relationship in my JPA Entity that is lazy loaded I get a lazy ...
jkratz55's user avatar
-1votes
2answers
4kviews

In a REST service project, where should we put code that calls a third party REST API?

My project is organized in layers like Configuration Controller Service Repository Domain Our REST Controller is in the Controller layer. We need to connect to another API via REST calls and I'm not ...
Envin's user avatar

153050per page
close